// 定义一些常量
export const ArticleStatus = [
  { id: -1, name: '全部' },
  { id: 0, name: '草稿' },
  { id: 1, name: '待审核' },
  { id: 2, name: '审核通过' },
  { id: 3, name: '审核失败' },
]

// 在线富文本编辑器的配置项
export const modules = {
  toolbar: {
    container: [
      ['bold', 'italic', 'underline', 'strike'],
      ['blockquote', 'code-block'],
      [{ header: 1 }, { header: 2 }],
      [{ list: 'ordered' }, { list: 'bullet' }],
      [{ script: 'sub' }, { script: 'super' }],
      [{ indent: '-1' }, { indent: '+1' }],
      [{ direction: 'rtl' }],
      [{ size: ['small', false, 'large', 'huge'] }], //字体设置
      [
        {
          color: [],
        },
      ],
      [
        {
          background: [],
        },
      ],
      [{ font: [] }],
      [{ align: [] }],
      ['link', 'image'], // a链接和图片的显示
    ],
  },
}